This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jul 16, 2013, 1:49 PM
30 Posts
topic has been resolvedResolved

Simple action 'Create response document' doesn't create response

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 3

Hello all,

I'm using simple action Create response document.

On earlier page, I collect parent id in scoped variable using this method:

sessionScope.nazivParent =  document1.getDocument().getUniversalID(), so that's my parent ID:

When i save response, it saves allright datawise, but it's not response to parent document (when i look at document details, $REF field is missing).

Parent topic is made in notes client, an my responses are made via mobile app, don't know if that's important.

 

here is complete code for my button:

 

<xp:button value="Spremi zaznamek" id="button2">
                        <xp:eventHandler event="onclick" submit="true"
                            refreshMode="norefresh" immediate="false" save="true">
                            <xp:this.action>

                                <xp:actionGroup>

                                <xp:createResponse
                                        name="$$PreviousPage"
                                        parentId="#{javascript:sessionScope.nazivParent}">

                                    </xp:createResponse>
                                </xp:actionGroup>
                            </xp:this.action>
                        </xp:eventHandler

                    </xp:button>

 

 

Can somebody please help??

 

 

 

 

 

 

 

Jul 16, 2013, 5:29 PM
586 Posts
Response docs

I've never done response documents in XPages and never would.  The only reason to even attempt it in my opinion is if you're working with an existing client app, which is sounds like you are.

If the simple action is not working then try calling .makeRespone(sessionScope.yourID) from the querySave event of the response document.  Like you would do in LotusScript.  See if that works.

Jul 17, 2013, 9:36 AM
30 Posts
solved!

Hello David, I menaged to sort it out, but not the way you suggested.

The solution i used was on data source properties for my form used to create responses, i put in ParentID property my computed property: sessionScope.nazivParent

Then I used button with simple action "Save document" (not "create response document"), and it saved just fine, as a response to parent doc.

Thank you for your help, and I would just like to say that I'm a big fan of your videos, and they helped me a lot during my continuous learning of xpages.

 

:)

Jul 17, 2013, 12:27 PM
586 Posts
Cool

Glad you got it working!  I had no idea that there was a parentID property in a datasource.  Neat.  Good to know.  I've just never dealt with response docs in XPages.  Since none of my apps are tied to any client app when I want to relate docs I just use @Unique keys.

Thanks for the kind words on NotesIn9.  I really appreciate it.  Glad they've been able to help you.

 

Dave


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal